package pwd.allen.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

/**
 * @author 门那粒沙
 * @create 2020-12-12 19:18
 **/
@RequestMapping("wx")
@RestController
public class WeiXinController {

    @RequestMapping("test")
    public Object test(HttpServletRequest request) {
        HashMap<String, Object> map = new HashMap<>();
        map.put("host", request.getHeader("host"));
        return map;
    }
}
